package com.mxpio.erp.equipment.service.impl;

import com.mxpio.erp.common.equipment.entity.EquipmentEqpBasics;
import com.mxpio.erp.common.equipment.entity.EquipmentEqpStatusChangeLine;
import com.mxpio.erp.common.equipment.service.EquipmentEqpStatusChangeLineService;
import com.mxpioframework.jpa.JpaUtil;
import com.mxpioframework.system.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service
public class EquipmentEqpStatusChangeLineServiceImpl extends BaseServiceImpl<EquipmentEqpStatusChangeLine> implements EquipmentEqpStatusChangeLineService {
    @Override
    @Transactional
    public List<EquipmentEqpStatusChangeLine> listWith(String bizNo) {
        return JpaUtil.linq(EquipmentEqpStatusChangeLine.class).collect("basicsCode", EquipmentEqpBasics.class,"basicsCode").equal("bizNo",bizNo).list();
    }
}
